package com.application.tourapp.global;

import java.util.HashMap;

import com.application.tourapp.model.City;
import com.application.tourapp.model.Type;

public class VaraibleGlobal {

	private static boolean horsLigne = false;
	private static String typeName;
	private static City city;
	private static HashMap<Type, Integer> hashMapType;
	private static Integer indice = 0;
	private static String complementRecherche;
	
	public static boolean isHorsLigne() {
		return horsLigne;
	}

	public static void setHorsLigne(boolean horsLigne) {
		VaraibleGlobal.horsLigne = horsLigne;
	}

	public static String getTypeName() {
		return typeName;
	}

	public static void setTypeName(String typeName) {
		VaraibleGlobal.typeName = typeName;
	}

	public static City getCity() {
		return city;
	}

	public static void setCity(City city) {
		VaraibleGlobal.city = city;
	}

	public HashMap<Type, Integer> getHashMapType() {
		return hashMapType;
	}

	public void setHashMapType(HashMap<Type, Integer> hashMapType) {
		this.hashMapType = hashMapType;
	}

	public static Integer getIndice() {
		return indice;
	}

	public static void setIndice(Integer indice) {
		VaraibleGlobal.indice = indice;
	}

	public static void ajoutIndice(){
		VaraibleGlobal.indice = indice+1;
	}

	public static void retirerIndice(){
		VaraibleGlobal.indice = indice-1;
	}

	public static String getComplementRecherche() {
		return complementRecherche;
	}

	public static void setComplementRecherche(String complementRecherche) {
		VaraibleGlobal.complementRecherche = complementRecherche;
	}

}
